/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.consultation.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import cn.apestar.common.persistence.DataEntity;

/**
 * answerEntity
 * @author answer
 * @version 2017-06-05
 */
public class BeautyConsultationOrderAnswer extends DataEntity<BeautyConsultationOrderAnswer> {

    private static final long serialVersionUID = 1L;

    private Long orderId; // 咨询单ID

    private Long questionId; // 问题ID

    private String answerImageUrl; // 答案图片链接

    private String answerTitle; // 答案标题

    private String answerRemark; // 答案备注

    private String answerPriceStart; // 答案起始的价格区间

    private String answerPriceEnd; // 答案终止的价格区间

    private Long institutionId; // 企业ID

    public BeautyConsultationOrderAnswer() {
        super();
    }

    public BeautyConsultationOrderAnswer(String id) {
        super(id);
    }

    @NotNull(message = "咨询单ID不能为空")
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @NotNull(message = "问题ID不能为空")
    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    @Length(min = 0, max = 255, message = "答案图片链接长度必须介于 0 和 255 之间")
    public String getAnswerImageUrl() {
        return answerImageUrl;
    }

    public void setAnswerImageUrl(String answerImageUrl) {
        this.answerImageUrl = answerImageUrl;
    }

    @Length(min = 0, max = 255, message = "答案标题长度必须介于 0 和 255 之间")
    public String getAnswerTitle() {
        return answerTitle;
    }

    public void setAnswerTitle(String answerTitle) {
        this.answerTitle = answerTitle;
    }

    @Length(min = 0, max = 255, message = "答案备注长度必须介于 0 和 255 之间")
    public String getAnswerRemark() {
        return answerRemark;
    }

    public void setAnswerRemark(String answerRemark) {
        this.answerRemark = answerRemark;
    }

    @Length(min = 0, max = 11, message = "答案起始的价格区间长度必须介于 0 和 11 之间")
    public String getAnswerPriceStart() {
        return answerPriceStart;
    }

    public void setAnswerPriceStart(String answerPriceStart) {
        this.answerPriceStart = answerPriceStart;
    }

    @Length(min = 0, max = 11, message = "答案终止的价格区间长度必须介于 0 和 11 之间")
    public String getAnswerPriceEnd() {
        return answerPriceEnd;
    }

    public void setAnswerPriceEnd(String answerPriceEnd) {
        this.answerPriceEnd = answerPriceEnd;
    }

    public Long getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(Long institutionId) {
        this.institutionId = institutionId;
    }

}